<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns a list of available storage handler</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mysqlnd-qc-get-available-handlers" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysqlnd_qc_get_available_handlers</h1>
  <p class="verinfo">(PECL mysqlnd_qc &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mysqlnd_qc_get_available_handlers</span> &mdash; <span class="dc-title">Returns a list of available storage handler</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.mysqlnd-qc-get-available-handlers-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   
   <span class="methodname"><strong>mysqlnd_qc_get_available_handlers</strong></span>
    ( <span class="methodparam">void</span>
   ) : <span class="type">array</span></div>

  <p class="para rdfs-comment">
   Which storage are available depends on the compile time
   configuration of the query cache plugin. The
   <em>default</em> storage handler is always available.
   All other storage handler must be enabled explicitly when building the
   extension.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysqlnd-qc-get-available-handlers-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysqlnd-qc-get-available-handlers-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns an array of available built-in storage handler.
   For each storage handler the version number and version string
   is given.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mysqlnd-qc-get-available-handlers-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-2294">
   <p><strong>Example #1 <span class="function"><strong>mysqlnd_qc_get_available_handlers()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">mysqlnd_qc_get_available_handlers</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
   </div>

   <div class="example-contents"><p>以上例程会输出：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
array(5) {
  [&quot;default&quot;]=&gt;
  array(2) {
    [&quot;version&quot;]=&gt;
    string(5) &quot;1.0.0&quot;
    [&quot;version_number&quot;]=&gt;
    int(100000)
  }
  [&quot;user&quot;]=&gt;
  array(2) {
    [&quot;version&quot;]=&gt;
    string(5) &quot;1.0.0&quot;
    [&quot;version_number&quot;]=&gt;
    int(100000)
  }
  [&quot;APC&quot;]=&gt;
  array(2) {
    [&quot;version&quot;]=&gt;
    string(5) &quot;1.0.0&quot;
    [&quot;version_number&quot;]=&gt;
    int(100000)
  }
  [&quot;MEMCACHE&quot;]=&gt;
  array(2) {
    [&quot;version&quot;]=&gt;
    string(5) &quot;1.0.0&quot;
    [&quot;version_number&quot;]=&gt;
    int(100000)
  }
  [&quot;sqlite&quot;]=&gt;
  array(2) {
    [&quot;version&quot;]=&gt;
    string(5) &quot;1.0.0&quot;
    [&quot;version_number&quot;]=&gt;
    int(100000)
  }
}
</pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysqlnd-qc-get-available-handlers-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member">
     <a href="mysqlnd_qc.installation.html" class="link">Installation</a>
    </li>
    <li class="member">
     <span class="function"><a href="mysqlnd_qc_set_storage_handler.html" class="function" rel="rdfs-seeAlso">mysqlnd_qc_set_storage_handler()</a> - Change current storage handler</span>
    </li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>